var storage=window.localStorage;
if (storage.name) {
	$("#header_top_center_left").html("<li><a href='#'>欢迎来到聚美</a></li><li id='login_username'><a href='login.html' >请登录</a></li><li><a href='Registered.html'>快速注册</a></li><li id='out'>退出<li>");
	$("#login_username").html(storage.name);
}else{
	$("#login_username").html("<a href='login.html'>请登录</a>");
}
$("#out").click(function(){
	storage.clear();
	$(location).attr("href","index.html");
})
	


